home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 119
/
(Vol 119) Nov 09 2010.iso
/
TGKI-109
/
Games
/
fratboy_girlfriend_tower_defense.swf
/
scripts
/
DefineButton2_2054
/
BUTTONCONDACTION on(release).as
Wrap
Text File
|
2010-11-09
|
648b
|
30 lines
on(release){
if(_root.pausee != true)
{
_root.cursor.swapDepths(99999);
_root.cursor.removeMovieClip();
i = 0;
while(i <= _root.creatureNum)
{
eval("_global.a" + i).mc.removeMovieClip();
delete ("_global.a" + i);
i++;
}
i = 0;
while(i <= _root.towersNum)
{
eval("_root.tower" + i).removeMovieClip();
i++;
}
i = 0;
while(i <= _root.missilesNum)
{
eval("_root.missiles" + i).removeMovieClip();
i++;
}
clearAll();
gotoAndStop("begin");
play();
}
}